Skip to content

queue-transport-alert: pass version secrets to cf through a pipe - #12025

Merged
dezren39 merged 2 commits into
mainfrom
claude/qta-cf-secrets-pipe
Nov 19, 2026
Merged

dezren39 merged 2 commits into
mainfrom
claude/qta-cf-secrets-pipe

Conversation

@dezren39

@dezren39 dezren39 commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Before: the first live run of the new cf deploy (#12023) stopped at the upload with Could not read file: /dev/stdin; cf reads --secrets-file with a plain file read, which fails on the process's stdin pipe. Nothing was uploaded or deployed.

After: the secrets JSON reaches cf through a bash process-substitution pipe (--secrets-file <(cat)) with cf's own stdin on /dev/null, so the upload reads them and they still never touch disk or argv. bash is now in the deploy app's runtime inputs.

How: runCfWithSecrets in deploy.mjs runs bash -c 'cf -q "$@" --secrets-file <(cat) </dev/null' with the JSON on stdin; checked locally that the child reads the pipe and its own stdin stays empty. Run live on the laptop from this branch: version uploaded with all five secrets, deployed at 100%, cron applied, /status.json answering up.

Refs #6369


<a href="https://dashboardbackend.blacksmith.sh/track/enable-autofix?expires=1797659073&installation_model_id=443529&pr_number=12025&ref=codesmith_pr_footer&repository=developing-today%2Fcode&return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fpull%2F12025&signature=3ea84d1046a7b82e89aed3e4b274d92f71fc9dce774290d929231d69099640fa"&gt;&lt;picture&gt;&lt;source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"&gt;&lt;source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"&gt;&lt;img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png" width="190" height="28"&gt;
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Generated by Claude Code

cf reads --secrets-file with a plain file read, and /dev/stdin failed
with 'Could not read file' on the first live versions upload (nothing
was uploaded or deployed). Hand cf a process-substitution pipe instead,
with cf's own stdin on /dev/null, so the secrets still never touch disk
or argv.

Refs #6369

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 requested a review from a team as a code owner November 19, 2026 05:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T05:46:15.719743Z ee7f469 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

… connects

The first live cf deploy uploaded, deployed and applied the cron, then
its /status.json check failed: Node's 250 ms per-address connect window
timed out every address on the laptop's network while curl got through.
Give each address 5 s, retry three times, and say the version is
deployed when only the check fails.

Refs #6369

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 merged commit b3de6c1 into main Nov 19, 2026
@dezren39
dezren39 deleted the claude/qta-cf-secrets-pipe branch November 19, 2026 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants